package com.weibo.dip.hatest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.TimeUnit;

/** Created by haisen on 2018/7/31. */
public class Testonlyloop implements Runnable {

  Logger logger = LoggerFactory.getLogger(Testonlyloop.class);

  public void run() {
    while (!Thread.interrupted()) {
      try {
        logger.info("sleeping 10000");
        TimeUnit.MILLISECONDS.sleep(10000);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }
  }

  public static void main(String[] args) {
    new Thread(new Testonlyloop()).start();
  }
}
